<?php

use Drupal\scs_refund\Entity\ScsRefund;

function scs_refund_scs_refund_add_page() {
  $e = new ScsRefund();
  module_load_include('inc', 'scs_refund', 'scs_refund.forms');
  return drupal_get_form('scs_refund_scs_refund_entity_form', $e, 'add');
}

function scs_refund_scs_refund_view_page(ScsRefund $e) {
  return entity_view($e->entityType(), [$e]);
}

function scs_refund_scs_refund_edit_page(ScsRefund $e) {
  module_load_include('inc', 'scs_refund', 'scs_refund.forms');
  return drupal_get_form('scs_refund_scs_refund_entity_form', $e, 'edit');
}

function scs_refund_scs_refund_delete_page(ScsRefund $e) {
  module_load_include('inc', 'scs_refund', 'scs_refund.forms');
  return drupal_get_form('scs_refund_scs_refund_delete_form', $e);
}

